package main

import (
	showbench "blockChain/showBench"
	block "blockChain/singleBlock"
	testbug "blockChain/testBug"
	"fmt"
)

func main() {
	// showbench.NormalSimulation(5)
	showbench.DivertSimulation(2, 5)
}

func main8237() {
	test := block.Block{}
	test.Initialize(block.EMPTY_BLOCK, "zzz")
	fmt.Println(test.SelfHash)
	fmt.Println(test.IsValid())
	// test.Birth = "12月25日"
	// test.Height = 9712
	test.SetTime("8月1月")
	fmt.Println(test.SelfHash)
	fmt.Println(test.IsValid())
}

func main25475() {
	testbug.TestBlockBuffer()
	// println("1" <= "a")
}

func main622141() {
	testbug.GenerateBlockChain(5, "000000c")
}

func main524131() {
	// 即使同一时间 两者的随机数仍然不同
	a := block.Block{}
	b := block.Block{}
	a.Initialize("frank", "zzz")
	b.Initialize("frank", "zzz")
	fmt.Println("a:", a)
	fmt.Println("b:", b)
}
